package coint.btc.vo;

import java.util.List;

/**
 * 
 * @ClassName Page
 * @author BOOM
 * @date 2018/05/18
 * 
 * @param <T>
 */
public class Page<T> {
    /**
     * 下一页
     */
    private Integer page;

    /**
     * 每页个个数
     */
    private Integer rows;

    /**
     * 总条数
     */
    private Object total;
    
    /**
     * 开始日期
     */
    private String startTime; 
    
    /**
     * 截止日期
     */
    private String endTime; 
    
    /**
     * 记录
     */
    private List<T> results;

	public Integer getPage() {
		return page == null ? 1 : page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getRows() {
		int max = 50;
		if(rows==null || rows>max) {
			rows=10;
		}
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public Object getTotal() {
		return total;
	}

	public void setTotal(Object total) {
		this.total = total;
	}

	public List<T> getResults() {
		return results;
	}

	public void setResults(List<T> results) {
		this.results = results;
	}

	
	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
    
}